package org.tuio4j;

/**
 * See license.txt for license information.
 * @author Uwe Laufs
 * @version 1.0
 */
public class TuioEvent {
	public static final int SESSION_DETECTED = 0;
	public static final int SESSION_UPDATED = 1;
	public static final int SESSION_ENDED = 2;
	private int eventTypeId;
	
	public TuioEvent(int eventTypeId){
		this.setEventTypeId(eventTypeId);
	}
	
	private void setEventTypeId(int eventTypeId){
		if(eventTypeId==SESSION_DETECTED||eventTypeId==SESSION_UPDATED||eventTypeId==SESSION_ENDED){
			this.eventTypeId = eventTypeId;
		}else{
			throw new IllegalArgumentException("eventTypeId is invalid: " + eventTypeId);
		}
	}
	public int getEventTypeId() {
		return eventTypeId;
	}
}
